package edu.spec.wyn.week09.class2.homework1;

import java.util.List;

public class Animal {
    private String name;
    private List sounds;
    private List foods;

    public Animal() {
    }

    public Animal(String name, List sounds, List foods) {
        this.name = name;
        this.sounds = sounds;
        this.foods = foods;
    }

    void eat(){
        System.out.println("能吃就能睡");
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List getSounds() {
        return sounds;
    }

    public void setSounds(List sounds) {
        this.sounds = sounds;
    }

    public List getFoods() {
        return foods;
    }

    public void setFoods(List foods) {
        this.foods = foods;
    }

    public String cry() {
        return "";
    }
}
